<%= error_messages_for 'corner' %>

<!--[form:corner]-->
<p><label for="corner_family">Family</label><br/>
<%= collection_select('corner', 'corner_family_id', CornerFamily.find(:all), :id,
:name) %></p>
<p><label for="corner_binary">Binary</label><br/>
<%= file_field 'corner', 'upload' %>
</p>
<p><label for="corner_binary_b">Binary 2</label><br/>
<%= file_field 'corner', 'upload_b' %>
</p>



<% for color in Color.find(:all) %>
<div>
  <%= radio_button(:corner, :color_id, color.id) %>
 <% if color.is_a?(MonoScheme) %>
 <span style="background-color:#<%= color.first %>;"><%= color.first %></span>
 <% else %>
 <span style="background-color:#<%= color.first %>;"><%= color.first %></span><span style="background-color:#<%= color.second %>;"><%= color.second %></span>
 <% end %>
</div>
<% end %>
<!--[eoform:corner]-->
